SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE VIEW dbo.vwlAgentesConEstimulo160
AS
SELECT     idEstimulo AS ID, Agente, Documento, Monto
FROM         dbo.tb_AgentesConEstimulo160
INNER JOIN tb_Agentes ON idAgente = Agente 

GO
GRANT SELECT ON  [dbo].[vwlAgentesConEstimulo160] TO [CentroDeDesignaciones]
GRANT SELECT ON  [dbo].[vwlAgentesConEstimulo160] TO [PersonalDocente]
GRANT SELECT ON  [dbo].[vwlAgentesConEstimulo160] TO [SoloVer]
GO
